const fs = require("fs"),
    path = require("path");

var filePath = path.join(__dirname,"/8.txt");
var newPath = path.join(__dirname,"/4.txt");
fs.renameSync(filePath,newPath);